package com.atguigu.a_operator;

public class Test {
    public static void main(String[] args) {
        //求3个数的较大值
        int a = 10;
        int b = 30;
        int c = 20;

        //先比较2个数
        int temp = a > b ? a : b;

        //拿temp和第三个数进行比较
        int max = temp > c ? temp : c;

        System.out.println("max = " + max);
    }
}
